//
//  CourseTableViewCell.swift
//  BellManage
//
//  Created by Bestsch on 16/3/31.
//  Copyright © 2016年 wsl. All rights reserved.
//

import UIKit

class CourseTableViewCell: UITableViewCell {

    var classname: UILabel!
    var read: UIImageView!
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.backgroundColor = UIColor.white
        setUp()
    }
    
    func setUp() {
        classname = UILabel.init(frame: CGRect(x: 20, y: 0, width: 100, height: 60))
        classname.font = UIFont.systemFont(ofSize: 16)
        classname.textAlignment = NSTextAlignment.left
        classname.textColor = UIColor.darkText
        
        read = UIImageView.init(frame: CGRect(x: screenW - 34 - 50, y: 20, width: 34, height: 20))
        
        self.contentView.addSubview(classname)
        self.contentView.addSubview(read)
        
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
